package com.hengxinguotong.zhihuichengjian.bean;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

/**
 * @CopyRight 恒信国通信息科技
 * @Author WuLei
 * @Date 2019/2/25
 *
 * 塔吊、升降机、环境设备实时数据预警数据
 */

public class LiveDataAlarm implements Serializable {
    private List<String> data;
    //塔吊默认值	|   1 正常 2预警 3报警 4违章
    //升降机默认值	|	1正常 2预警 3报警 4异常
    //环境默认值	|	1正常 2预警 3报警
    private int type;

    public List<String> getData() {
        return data;
    }

    public void setData(List<String> data) {
        this.data = data;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        for (String str:data){
            sb.append(str + "  ");
        }
        return sb.toString();
    }
}
